// use-editor-store.ts
import {create} from 'zustand'

interface OpenState {
    open: boolean | null;
    setOpen: (open: boolean | null) => void
}

// 状态管理, 可以在任何地方访问
export const useOpenStore = create<OpenState>((set) => ({
    open: null,
    setOpen: (open) => set({open}),
}))

